@layout("/common/_container.html",{js:["/assets/modular/system/settings/form.js"]}){

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="settingForm" lay-filter="settingForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input id="id" name="id" type="hidden" value="${setting.id}"/>
                <input id="clzType" name="clzType" type="hidden" value="${setting.clzType}"/>

                <div class="layui-form-item">
                    <label class="layui-form-label">名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="name" name="name" placeholder="请输入配置名称" type="text" value="${setting.name}" class="layui-input"
                               @if(setting.clzType==1){
                               readonly="readonly"
                               @}
                               lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">键<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="settingKey" name="settingKey" placeholder="请输入配置唯一编码" type="text" value="${setting.settingKey}" class="layui-input"
                               @if(setting.clzType==1){
                               readonly="readonly"
                               @}
                               lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">值</label>
                    <div class="layui-input-block">
                        <textarea id="settingVal" name="settingVal"  class="layui-textarea">${setting.settingVal}</textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <textarea id="memo" name="memo" placeholder="备注" class="layui-textarea">${setting.memo}</textarea>
                    </div>
                </div>
                <div class="layui-form-item text-right">
                    <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
                    <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog" id="backupPage">关闭</button>
                </div>
            </form>
        </div>
    </div>
</div>


@}